package com.letoy.edu.controller;

import io.swagger.annotations.ApiImplicitParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class WebController {

    @ApiImplicitParam(value = "", name = "Authorization", paramType = "header", dataType = "String", required = true)
    @RequestMapping(value = "/main", method = RequestMethod.POST)
    private Map<String, Object> getMain() {
        Map<String, Object> map = new HashMap<>();
        map.put("status", "success");
        return map;
    }

    @RequestMapping(value = "/main2", method = RequestMethod.POST)
    private Map<String, Object> getMain2() {
        Map<String, Object> map = new HashMap<>();
        map.put("status", "接口二测试成功");
        return map;
    }
}
